package Cafezam;

import java.util.Scanner;

public class J12Circle {
	public static void main(String[] args)
	{ 
		Circle r = new Circle();
		r.getRadius(r.getMake());
		System.out.println("원의 면적"+r.getCircleArea());
		System.out.println("원의 둘레"+r.getPerim());
	}
}
class Circle
{
	double radius;
	double CircleArea;
	double Perim;
	final double PI=3.14;
	
	public double getRadius(Scanner sc)
	{
		System.out.println("반지름을 입력하시오:");
		radius=sc.nextDouble();
		sc.close();
		return radius;
	}
	public double getCircleArea()
	{
		
		return radius*radius*PI;
	}
	public double getPerim()
	{
		
		return radius*2*PI;
	}
	public Scanner getMake()
	{
		Scanner sc =  new Scanner(System.in);
		return sc;
	}
	public void getClose(Scanner sc)
	{
		sc.close();
		
	}
	
}

